﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Navigation;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Shell;

namespace APACWP8.View
{
    public partial class StartupPage : PhoneApplicationPage
    {
        public StartupPage()
        {
            InitializeComponent();
            Loaded += StartupPage_Loaded;
        }

        void StartupPage_Loaded(object sender, RoutedEventArgs e)
        {
            starpage.Begin();
        }

        private void Grid_Text_Tapped(object sender, System.Windows.Input.GestureEventArgs e)
        {
            App.RootFrame.Navigate(new Uri("/View/MainPage.xaml", UriKind.Relative));
        }
        protected override void OnNavigatedFrom(NavigationEventArgs e)
        {
            NavigationService.RemoveBackEntry();
        }
        private void grid_Tapped(object sender, System.Windows.Input.GestureEventArgs e)
        {
            this.grid.Visibility = Visibility.Collapsed;
            this.Dearall.Begin();
        }
    }
}